<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ page import="com.ddstation.common.property.JsVersionProperties" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1"><!--移动设备优先-->
    <title>系统设置</title>
    <style type="text/css">@import url("<c:url value="/css/lib/bootstrap.min.css"/>");</style>
    <style type="text/css">@import url("<c:url value="/css/lib/V2.0/weknow.css?${JsVersionProperties.prop.getProperty('common')}"/>");</style>
    <style type="text/css">@import url("<c:url value="/css/lib/font-awesome.min.css"/>");</style>
    <style type="text/css">@import url("<c:url value="/css/pc/organization/organization.css?V0.0"/>");</style>

    <script src="<c:url value="/js/lib/jquery.min.js"/>" type="text/javascript"></script>
    <script src="<c:url value="/js/lib/bootstrap.min.js"/>" type="text/javascript"></script>
    <script src="<c:url value="/js/lib/weknow.js?${JsVersionProperties.prop.getProperty('common')}"/>" type="text/javascript"></script>
    <script src="<c:url value="/js/lib/wn-validator.js?${JsVersionProperties.prop.getProperty('wn-validator')}"/>" type="text/javascript"></script>

</head>
<body>
<script>
    $(document).ready(function() {

        //iframe高度自动适应
        var mainheight = $(window).height() - 60;
        $("#systemConfigIframe").height(mainheight);

        $('ul.headmenu>li>a').on('click', function() {
            //清除所有选中
            $('ul.headmenu>li').removeClass("active");
            //添加选中
            $(this).parent().addClass("active");
            $("#systemConfigIframe").attr('src', WeKnow.getRealPath() + "/" + $(this).attr('data-href'));
        });

        // 默认打开第一个页面
        $('ul.headmenu>li>a:first').click();

    });

</script>

<!-- Navigation -->
<div style="margin-left: 10px;height: 100%;">
    <ul class="pagination nav headmenu">
        <c:forEach var="a" items="${secondMenus}" varStatus="xh">
            <li><a data-href="${a.url}" style="float: left;">${a.name}</a></li>
        </c:forEach>
    </ul>
    <iframe id="systemConfigIframe" frameborder="no" scrolling="no" style="width: 100%;" src="">



    </iframe>
</div>



</body>
</html>

